﻿<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:WpfApplication1="clr-namespace:WpfApplication1"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <WpfApplication1:Human x:Key="Human" Child="abc" />
    </Window.Resources>
    <Grid>
        <WpfApplication1:MyPanel HorizontalAlignment="left" Height="142" Margin="17,10,0,167" Width="394" >
            <WpfApplication1:MyButton x:Name="b2" Margin="22,0,249,98" Content="2" HorizontalAlignment="Left"  />
            <WpfApplication1:MyButton x:Name="b3" Margin="52,0,249,98" Content="3" HorizontalAlignment="Left"  />
        </WpfApplication1:MyPanel>
        <Canvas HorizontalAlignment="Left" Height="118" Margin="26,147,0,0" VerticalAlignment="Top" Width="136">
            <Button Content="Button"  Canvas.Left="34" Canvas.Top="42" />
        </Canvas>
        <Grid HorizontalAlignment="Left" Height="142" Margin="17,157,0,0" VerticalAlignment="Top" Width="381">
            <Button Margin="12" Click="Button_Click_1"  Content="Button"   />
        </Grid>
        <StackPanel x:Name="stackPanel">
            <Button Content="3" Margin="5" />
            <StackPanel x:Name="stackInner">
                <Button Content="4" Margin="5" Click="Button_Click_1" />
            </StackPanel>
            
        </StackPanel>
    </Grid>
</Window>
